/**
* Copyright 2009, Jethro Grassie, Creative Jar Technology Ltd (http://www.cjtech.co.uk)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
**/

package com.cjt.sample.business;

import com.adobe.cairngorm.business.RMIService;
import com.adobe.cairngorm.business.RMICallInfo;

import java.util.ArrayList;
import java.util.List;

public class TimeRMIService extends RMIService
{
    public function getTime():Void
    {
        var callInfo:RMICallInfo = RMICallInfo
        {
            override function getHost():String
            {
                return "localhost";
            }
            override function getLookupName():String
            {
                return "TimeUtil";
            }
            override function getMethodName():String
            {
                return "getTime";
            }
            override function getMethodParameters():List
            {
                return new ArrayList();
            }
        }
        invoke(callInfo);
    }
}
